package net.mfjassociates.financial.shared.domain;

import java.util.List;

import javax.persistence.Query;

public aspect Ids_Fn_Entity {

    public static Ids Ids.findIdsByRowid(Integer rowid) {
        if (rowid == null) return null;
        Query query = entityManager().createQuery("select o from Ids o where o.rowid = :id").setParameter("id",rowid);
        Ids result = null;
        @SuppressWarnings("unchecked")
		List<Ids> results = (List<Ids>)query.getResultList();
        if (results.size() > 0) {
            result = (Ids) results.get(0);
        }
        return result;
    }
}
